using HuiLian.Common.Input;
using HuiLian.Service.Platform.MeasureInfo.Input;
using HuiLian.Common.Output;
using HuiLian.Model.Platform;
using System.Threading.Tasks;
using System.Collections.Generic;

namespace HuiLian.Service.Platform.MeasureInfo
{
    /// <summary>
    /// 测量数据表接口
    /// </summary>
    public interface IMeasureInfoService
    {
        /// <summary>
        /// 获取测量数据表信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> GetAsync(long id);

        /// <summary>
        /// 查询测量数据表信息
        /// </summary>
        /// <param name="input">分页信息</param>
        /// <returns></returns>
        Task<IResponseOutput> PageAsync(PageInput<MeasureInfoEntity> input);

        /// <summary>
        /// 添加测量数据表信息
        /// </summary>
        /// <param name="input">测量数据表信息</param>
        /// <returns></returns>
        Task<IResponseOutput> AddAsync(MeasureInfoAddInput input);

        /// <summary>
        /// 更新测量数据表信息
        /// </summary>
        /// <param name="input">测量数据表信息</param>
        /// <returns></returns>
        Task<IResponseOutput> UpdateAsync(MeasureInfoUpdateInput input);

        /// <summary>
        /// 删除测量数据表信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> DeleteAsync(long id);

        /// <summary>
        /// 软删除测量数据表信息
        /// </summary>
        /// <param name="id">主键</param>
        /// <returns></returns>
        Task<IResponseOutput> SoftDeleteAsync(long id);

        /// <summary>
        /// 批量软删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<IResponseOutput> BatchSoftDeleteAsync(long[] ids);

        /// <summary>
        /// 添加列表
        /// </summary>
        /// <param name="measureInfos"></param>
        /// <returns></returns>
        Task<IResponseOutput> AddListAsync(List<MeasureInfoEntity> measureInfos);

        Task<IResponseOutput> UpdatePaiDanTimeAndJieDanTimeFromExcel(List<MeasureInfoEntity> measureInfos);
    }
}
